package com.aw.qzblog.exception;


import com.aw.qzblog.entity.enums.ErrorEnum;
import lombok.Data;

@Data
public class SysException extends RuntimeException {
    private int code;
    private String msg;


    public SysException(ErrorEnum e) {
        this.code = e.getCode();
        this.msg = e.getMsg();
    }

    public SysException(ErrorEnum e, String msg) {
        this.code = e.getCode();
        this.msg = msg;
    }
}
